package com.examp.dy.dy.service;

import com.examp.dy.dy.dao.BloginfoRepository;
import com.examp.dy.dy.entities.Bloginfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BloginfoService {
    @Autowired
    BloginfoRepository bloginfoRepository;

    public Bloginfo save(Bloginfo bloginfo){
        return bloginfoRepository.save(bloginfo);
    }
   public List<Bloginfo> getAll(){
        return bloginfoRepository.findAll();
   }

}
